package com.gl.saasservice.repository;


import com.gl.saasservice.entity.MatchUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;

public interface MatchUserRepository extends PagingAndSortingRepository<MatchUser,Long>, JpaSpecificationExecutor<MatchUser>, JpaRepository<MatchUser, Long> {
    @Modifying
    @Query(value = "update m_match_user_stock m set m.name= ?1 ,m.phone=?2 where m.id= ?3",nativeQuery = true)
    public int saveNameAndPhone(String name,String phone,Long id);
}
